package com.mushuilingfeng.ddd.user.infrastructure.repository;

import com.mushuilingfeng.ddd.user.domain.org.entity.OrgApply;
import com.mushuilingfeng.ddd.user.domain.org.repository.IOrgApplyRepository;
import com.mushuilingfeng.ddd.user.domain.org.vo.OrgApplyDetail;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.stream.Collectors;

/**
 * @author
 * @date 2024/9/19
 */
@Repository
public class OrgApplyRepositoryImpl extends BaseMemoryRepository<OrgApply> implements IOrgApplyRepository {

    @Override
    public List<OrgApplyDetail> userOrgApplyList(Long userId) {
        db.entrySet().stream().filter(entry -> entry.getValue() instanceof OrgApply).collect(Collectors.toList());
        return null;
    }

}
